package com.nine.demo.quartzdemo.service;

import org.quartz.SchedulerException;

/**
 * @Description:
 * @Author: 刘超
 * @Date: 2023-05-26 15:42
 */
public interface QuartzService {
    /**
     * 启动任务
     * @return
     */
    String start() throws SchedulerException;

    /**
     * 停止任务
     * @return
     */
    void stop();

    /**
     * 暂停
     */
    void pause() throws SchedulerException;

    /**
     * 恢复
     */

    void resume() throws SchedulerException;

    void delete() throws SchedulerException;

    void add() throws SchedulerException;

    void triggerJob() throws SchedulerException;
}
